/**
 * FileName: StringIntern
 * Author:   powersi
 * Date:     2021/3/10 22:50
 * Description:
 */
package com.zm.demo.core.jvm;

/**
 * Description: 
 * Author:      powersi
 * Date:        2021/3/10 22:50
 */
public class StringIntern {


    public static void main(String[] args) {
        String s = "hello";
        String s2 = new String("hello");
        System.out.println(s == s2);
        System.out.println(s == s.intern());
        System.out.println(s2 == s2.intern());
    }
}
